package org.sgx.jsutil.nativable;

import java.lang.annotation.*;


/**
 * TODO
 * @author sg
 *
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface JSOProperty {
	/**
	 * a setter or getter method is annotated (not required) and it defines a JSO property named property() and with type equals to the return type of the method.
	 */
	String field() default "";
	/**
	 * anny method can be annotated with this and it means a function property in the toNative() object
	 * which implementation is the target method and its name is method() 
	 */
	String method() default "";
}
